<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>TP1-Algo:  Fichier source de Porte.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">TP1-Algo
   &#160;<span id="projectnumber">1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Généré par Doxygen 1.8.6 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="namespaces.html"><span>Espaces&#160;de&#160;nommage</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Membres&#160;de&#160;fichier</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_porte_8h_source.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">Porte.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_porte_8h.html">Aller à la documentation de ce fichier.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#ifndef PORTE_H_</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define PORTE_H_</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &lt;stdexcept&gt;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="keyword">namespace </span>TP1</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;{</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">/* Couleur d&#39;une porte ou d&#39;un joueur.</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> La valeur &quot;Aucun&quot; est une valeur spéciale utilisée dans la fonction &quot;trouveGagnant&quot;.*/</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690e">   23</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;{</div>
<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690eabe0ea9860158ec92d69b0950c9a77a20">   25</a></span>&#160;    <a class="code" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690ea595da0cd6755470faa7557f03b500a63">Rouge</a>, <a class="code" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690eabe0ea9860158ec92d69b0950c9a77a20">Vert</a>, <a class="code" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690eaee026ef535817b182f6343fd5f39f3f0">Bleu</a>, <a class="code" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690ea17294929f25c6255c90ba75bc66aad18">Jaune</a>, <a class="code" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690eae0bf5933ca3585058577def6ab4ceec7">Aucun</a></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;} <a class="code" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690e">Couleur</a>;</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">class </span>Piece;</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="class_t_p1_1_1_porte.html">   36</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_t_p1_1_1_porte.html">Porte</a></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;{</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <a class="code" href="class_t_p1_1_1_porte.html#aaa1c4811df774b15a10037b57872523c">Porte</a>(<a class="code" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690e">Couleur</a> c, <a class="code" href="class_t_p1_1_1_piece.html">Piece</a> * d);</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <a class="code" href="class_t_p1_1_1_porte.html#aaa1c4811df774b15a10037b57872523c">Porte</a>();</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="class_t_p1_1_1_porte.html#a9a13199023bb030e7939966f3d4fb6cc">~Porte</a>();</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <a class="code" href="class_t_p1_1_1_porte.html#aaa1c4811df774b15a10037b57872523c">Porte</a>(<span class="keyword">const</span> <a class="code" href="class_t_p1_1_1_porte.html">Porte</a>&amp;);</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <span class="keyword">const</span> <a class="code" href="class_t_p1_1_1_porte.html">Porte</a>&amp; <a class="code" href="class_t_p1_1_1_porte.html#a2ef2f573ad16ce321fdcc0fd5542884c">operator =</a>(<span class="keyword">const</span> <a class="code" href="class_t_p1_1_1_porte.html">Porte</a>&amp; source);</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    <a class="code" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690e">Couleur</a> <a class="code" href="class_t_p1_1_1_porte.html#ae4ee7c63216e6e72d0a6364523ae70d5">getCouleur</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    <a class="code" href="class_t_p1_1_1_piece.html">Piece</a> &amp; <a class="code" href="class_t_p1_1_1_porte.html#a89b049715752847eb6f9a0365531c8db">getDestination</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_t_p1_1_1_porte.html#ab2e21c1b8874c58b8388f4167d70a5e0">operator==</a>(<span class="keyword">const</span> <a class="code" href="class_t_p1_1_1_porte.html">Porte</a>&amp; p);</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div>
<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="class_t_p1_1_1_porte.html#a1907533e4de27e978b37f8db635e9159">   94</a></span>&#160;    <a class="code" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690e">Couleur</a> <a class="code" href="class_t_p1_1_1_porte.html#a1907533e4de27e978b37f8db635e9159">color</a>; </div>
<div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="class_t_p1_1_1_porte.html#afbcaef670fe7cf89c8af9e1347df4e23">   96</a></span>&#160;    <a class="code" href="class_t_p1_1_1_piece.html">Piece</a> * <a class="code" href="class_t_p1_1_1_porte.html#afbcaef670fe7cf89c8af9e1347df4e23">destination</a>; </div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;};</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;}</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* PORTE_H_ */</span><span class="preprocessor"></span></div>
<div class="ttc" id="class_t_p1_1_1_porte_html_a2ef2f573ad16ce321fdcc0fd5542884c"><div class="ttname"><a href="class_t_p1_1_1_porte.html#a2ef2f573ad16ce321fdcc0fd5542884c">TP1::Porte::operator=</a></div><div class="ttdeci">const Porte &amp; operator=(const Porte &amp;source)</div><div class="ttdoc">surcharge de l&#39;opérateur d&#39;égalité, permet d&#39;assigner les données membre d&#39;une porte à l&#39;objet couran...</div><div class="ttdef"><b>Definition:</b> <a href="_porte_8cpp_source.html#l00055">Porte.cpp:55</a></div></div>
<div class="ttc" id="namespace_t_p1_html_a8b5ef3e0301394a6503b5b11ab59690ea595da0cd6755470faa7557f03b500a63"><div class="ttname"><a href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690ea595da0cd6755470faa7557f03b500a63">TP1::Rouge</a></div><div class="ttdef"><b>Definition:</b> <a href="_porte_8h_source.html#l00025">Porte.h:25</a></div></div>
<div class="ttc" id="class_t_p1_1_1_porte_html_ae4ee7c63216e6e72d0a6364523ae70d5"><div class="ttname"><a href="class_t_p1_1_1_porte.html#ae4ee7c63216e6e72d0a6364523ae70d5">TP1::Porte::getCouleur</a></div><div class="ttdeci">Couleur getCouleur() const </div><div class="ttdoc">permet de récupérer la couleur de la porte </div><div class="ttdef"><b>Definition:</b> <a href="_porte_8cpp_source.html#l00070">Porte.cpp:70</a></div></div>
<div class="ttc" id="namespace_t_p1_html_a8b5ef3e0301394a6503b5b11ab59690e"><div class="ttname"><a href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690e">TP1::Couleur</a></div><div class="ttdeci">Couleur</div><div class="ttdoc">Énumération des couleurs possibles pour une porte. </div><div class="ttdef"><b>Definition:</b> <a href="_porte_8h_source.html#l00023">Porte.h:23</a></div></div>
<div class="ttc" id="class_t_p1_1_1_porte_html_ab2e21c1b8874c58b8388f4167d70a5e0"><div class="ttname"><a href="class_t_p1_1_1_porte.html#ab2e21c1b8874c58b8388f4167d70a5e0">TP1::Porte::operator==</a></div><div class="ttdeci">bool operator==(const Porte &amp;p)</div><div class="ttdoc">surcharge de l&#39;opérateur. </div><div class="ttdef"><b>Definition:</b> <a href="_porte_8cpp_source.html#l00092">Porte.cpp:92</a></div></div>
<div class="ttc" id="class_t_p1_1_1_porte_html"><div class="ttname"><a href="class_t_p1_1_1_porte.html">TP1::Porte</a></div><div class="ttdoc">classe représentant une porte colorée dans un labyrinthe. </div><div class="ttdef"><b>Definition:</b> <a href="_porte_8h_source.html#l00036">Porte.h:36</a></div></div>
<div class="ttc" id="namespace_t_p1_html_a8b5ef3e0301394a6503b5b11ab59690eaee026ef535817b182f6343fd5f39f3f0"><div class="ttname"><a href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690eaee026ef535817b182f6343fd5f39f3f0">TP1::Bleu</a></div><div class="ttdef"><b>Definition:</b> <a href="_porte_8h_source.html#l00025">Porte.h:25</a></div></div>
<div class="ttc" id="namespace_t_p1_html_a8b5ef3e0301394a6503b5b11ab59690ea17294929f25c6255c90ba75bc66aad18"><div class="ttname"><a href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690ea17294929f25c6255c90ba75bc66aad18">TP1::Jaune</a></div><div class="ttdef"><b>Definition:</b> <a href="_porte_8h_source.html#l00025">Porte.h:25</a></div></div>
<div class="ttc" id="class_t_p1_1_1_piece_html"><div class="ttname"><a href="class_t_p1_1_1_piece.html">TP1::Piece</a></div><div class="ttdoc">Piece dans un labyrinthe ayant un nom unique et une liste de portes qui partent de cette pièce...</div><div class="ttdef"><b>Definition:</b> <a href="_piece_8h_source.html#l00028">Piece.h:28</a></div></div>
<div class="ttc" id="class_t_p1_1_1_porte_html_a1907533e4de27e978b37f8db635e9159"><div class="ttname"><a href="class_t_p1_1_1_porte.html#a1907533e4de27e978b37f8db635e9159">TP1::Porte::color</a></div><div class="ttdeci">Couleur color</div><div class="ttdef"><b>Definition:</b> <a href="_porte_8h_source.html#l00094">Porte.h:94</a></div></div>
<div class="ttc" id="class_t_p1_1_1_porte_html_afbcaef670fe7cf89c8af9e1347df4e23"><div class="ttname"><a href="class_t_p1_1_1_porte.html#afbcaef670fe7cf89c8af9e1347df4e23">TP1::Porte::destination</a></div><div class="ttdeci">Piece * destination</div><div class="ttdef"><b>Definition:</b> <a href="_porte_8h_source.html#l00096">Porte.h:96</a></div></div>
<div class="ttc" id="namespace_t_p1_html_a8b5ef3e0301394a6503b5b11ab59690eae0bf5933ca3585058577def6ab4ceec7"><div class="ttname"><a href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690eae0bf5933ca3585058577def6ab4ceec7">TP1::Aucun</a></div><div class="ttdef"><b>Definition:</b> <a href="_porte_8h_source.html#l00025">Porte.h:25</a></div></div>
<div class="ttc" id="class_t_p1_1_1_porte_html_aaa1c4811df774b15a10037b57872523c"><div class="ttname"><a href="class_t_p1_1_1_porte.html#aaa1c4811df774b15a10037b57872523c">TP1::Porte::Porte</a></div><div class="ttdeci">Porte()</div><div class="ttdoc">constructeur par défaut </div><div class="ttdef"><b>Definition:</b> <a href="_porte_8cpp_source.html#l00027">Porte.cpp:27</a></div></div>
<div class="ttc" id="namespace_t_p1_html_a8b5ef3e0301394a6503b5b11ab59690eabe0ea9860158ec92d69b0950c9a77a20"><div class="ttname"><a href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690eabe0ea9860158ec92d69b0950c9a77a20">TP1::Vert</a></div><div class="ttdef"><b>Definition:</b> <a href="_porte_8h_source.html#l00025">Porte.h:25</a></div></div>
<div class="ttc" id="class_t_p1_1_1_porte_html_a9a13199023bb030e7939966f3d4fb6cc"><div class="ttname"><a href="class_t_p1_1_1_porte.html#a9a13199023bb030e7939966f3d4fb6cc">TP1::Porte::~Porte</a></div><div class="ttdeci">virtual ~Porte()</div><div class="ttdoc">destructeur de la classe </div><div class="ttdef"><b>Definition:</b> <a href="_porte_8cpp_source.html#l00034">Porte.cpp:34</a></div></div>
<div class="ttc" id="class_t_p1_1_1_porte_html_a89b049715752847eb6f9a0365531c8db"><div class="ttname"><a href="class_t_p1_1_1_porte.html#a89b049715752847eb6f9a0365531c8db">TP1::Porte::getDestination</a></div><div class="ttdeci">Piece &amp; getDestination() const </div><div class="ttdoc">permet de récupérer la pièce vers laquel la porte mène </div><div class="ttdef"><b>Definition:</b> <a href="_porte_8cpp_source.html#l00080">Porte.cpp:80</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="_porte_8h.html">Porte.h</a></li>
    <li class="footer">Généré le Dimanche 8 Juin 2014 19:37:05 pour TP1-Algo par
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
